package com.theo.service.impl;

import com.theo.entity.CityInfo;
import com.theo.mapper.CityInfoMapper;
import com.theo.service.CityInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
@Service
public class CityInfoServiceImpl extends ServiceImpl<CityInfoMapper, CityInfo> implements CityInfoService {
    @Autowired
    private CityInfoMapper cityInfoMapper;

    @Override
    public List<CityInfo> findProvinces() {
        return cityInfoMapper.findProvinces();
    }

    @Override
    public List<CityInfo> findNoDataProvinces(String date) {
        return cityInfoMapper.findNoDataProvinces(date);
    }

    @Override
    public List<CityInfo> findCities(Integer id) {
        return cityInfoMapper.findCities(id);
    }
}
